<ui:component xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:a="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:ctg="http://www.crotouristguide.com/taglib">
	<h:form>
		<a:region renderRegionOnly="true">
			<ctg:status />
			<rich:panel id="topDestinations">
				<h1><h:outputText value="#{messages['title.top_destinations']}" />
				<ctg:nbsp /> <a:commandLink value="#{messages['label.by.visits']}"
					reRender="topDestinations">
					<f:param name="posjet" value="1" />
				</a:commandLink> <h:outputText value=" | "></h:outputText> <a:commandLink
					value="#{messages['label.by.reviews']}" reRender="topDestinations">
					<f:param name="posjet" value="2" />
				</a:commandLink> <s:div styleClass="subtitle">
					<h:outputText value="#{messages['subtitle.top.dest']}" />
				</s:div></h1>


				<rich:dataGrid value="#{topMjesta}" var="mjesto" columns="3"
					elements="9" width="100%">
					<s:div styleClass="title-14">
						<h:outputLink
							value="#{application.contextPath}/guides/mjesta/mjesto.seam">
							<f:param name="idMjesta" value="#{mjesto.idMjesta}" />
							<f:param name="l" value="#{currentLang}" />
							<f:param name="title" value="#{titleAction.getUrlTitle(mjesto)}"/>
							<h:outputText value="#{mjesto.naziv}" />
						</h:outputLink>
						<br />
						<s:span styleClass="text11">
							<h:outputLink
								value="#{application.contextPath}/guides/mjesta/objekti.seam">
								<f:param name="idMjesta" value="#{mjesto.idMjesta}" />
								<f:param name="idTipaObjekta" value="4" />
								<f:param name="l" value="#{currentLang}" />
								<f:param name="title" value="#{titleAction.getUrlTitle(mjesto,4)}"/>
								<h:outputText value="#{messages['label.hotels']}"></h:outputText>
							</h:outputLink>
							<h:outputText value=" | " />
							<h:outputLink
								value="#{application.contextPath}/guides/mjesta/objekti.seam">
								<f:param name="idMjesta" value="#{mjesto.idMjesta}" />
								<f:param name="idTipaObjekta" value="2" />
								<f:param name="l" value="#{currentLang}" />
								<f:param name="title" value="#{titleAction.getUrlTitle(mjesto,2)}"/>
								<h:outputText value="#{messages['label.apartments']}"></h:outputText>
							</h:outputLink>
							<h:outputText value=" | " />
							<h:outputLink
								value="#{application.contextPath}/guides/mjesta/objekti.seam">
								<f:param name="idMjesta" value="#{mjesto.idMjesta}" />
								<f:param name="idTipaObjekta" value="1" />
								<f:param name="l" value="#{currentLang}" />
								<f:param name="title" value="#{titleAction.getUrlTitle(mjesto,1)}"/>
								<h:outputText value="#{messages['label.camps']}"></h:outputText>
							</h:outputLink>
						</s:span>
					</s:div>
				</rich:dataGrid>
				<h:outputLink
					value="#{application.contextPath}//guides/home.seam">
					<f:param name="l" value="#{currentLang}" />
					<h:outputText value="#{messages['label.link.more']}"></h:outputText>
				</h:outputLink>
			</rich:panel>
		</a:region>
	</h:form>
</ui:component>